<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html >
<head>
	<meta name="decorator" content="sysDefault" content="text/html; charset=utf-8"/>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
				<div class="panel panel-default">
				  <div class="panel-heading">
				    <h3 class="panel-title">新闻类别
						<a class="btn btn-default btn-sm pull-right" role="button" href="javascript:void(0)" onclick="history.go(-1)">返回</a>
				    </h3>
				  </div>
				  <div class="panel-body">
					<form:form id="contractAttTypeForm" modelAttribute="newsCategory" action="${contextPath}/sys/news/category/save" method="post" class="form-horizontal" role="form">
						<form:hidden path="parentId" value="${category.id}"/>
						<tags:message content="${message}"/>
						<div class="form-group">
							<label for="name_lab" class="col-sm-2 control-label">新闻类别名称:</label>
							<div class="col-sm-2">
								<form:input id="name" path="name" maxlength="20" class="form-control required"/>
							</div>
						</div>
						<div class="form-group">
							<label for="name_lab" class="col-sm-2 control-label">父节点名称:</label>
							<div class="col-sm-2" style="margin-top:8px;">
								${category.name}
							</div>
						</div>
						<div class="form-group">
						  <div class="col-sm-offset-2 col-sm-10">
						    <input id="btnSave" class="btn btn-primary" type="submit" value="保 存"/>
							<input class="btn btn-default" type="button" value="返 回" onclick="history.go(-1)"/>
						  </div>
						</div>
					</form:form>
				  </div>
				</div>			
			</div>
		</div>
	</div>
</body>
</html>